﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace IMIS_ERP.Web.Factory_People
{
    public partial class ChangePwd : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }
        protected void btnSave_Click(object sender, EventArgs e)
        {
            IMIS_ERP.BLL.Factory_People bll = new BLL.Factory_People();
            if (bll.ChangePwd(Session["UId"].ToString(), txtPwdOld.Text.Trim(), txtPwdNew2.Text.Trim()))
            {
                lblMessage.Text = "修改密码成功";
            }
            else
            {
                lblMessage.Text = "修改密码失败，请确认原密码是否输入正确";
            }
        }
    }
}